#ifndef CONVERSATIONWINDOW_H
#define CONVERSATIONWINDOW_H

#include <QTextEdit>
#include <QMessageBox>
#include <QKeyEvent>


class ConversationWindow : public QTextEdit
{
    Q_OBJECT

    public:
        ConversationWindow(QWidget* parent=0);
        virtual ~ConversationWindow();


    public slots:
        void keyPressEvent ( QKeyEvent * event )
        {
                 if (event->key() == Qt::Key_Return)
                 {
                    emit returnPressEvent();
                 }
                 else{
                    QTextEdit::keyPressEvent(event);
                 }
        }

    signals:
        void returnPressEvent();

    private:
};



#endif // CONVERSATIONWINDOW_H
